﻿using HelperFromTheSkeleton.Model.DomainModels;
using System.ComponentModel.DataAnnotations;

namespace Authority.Doamin
{
    /// <summary>
    /// 路由权限
    /// </summary>
    public class RoutingAuthority : TreeBaseDomain
    {
        /// <summary>
        /// 路由名称
        /// </summary>
        [Required, MaxLength(100)]
        public string Name { get; set; } = string.Empty;

        [Required, MaxLength(100)]
        public string Code { get; set; } = string.Empty;

        /// <summary>
        /// 路由地址
        /// </summary>
        [Required, MaxLength(500)]
        public string Address { get; set; }= string.Empty;

        /// <summary>
        /// 子系统ID
        /// </summary>
        [Required]
        public Guid SubsystemID { get; set; }
    }
}